package com.zsummer.zero.ftp;

import java.io.IOException;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;

public class Demo1 {
	
	public static void main(String[] args) throws IOException {
		run1();
	}

	private static void run1() throws IOException {
		FTPClient f = new FTPClient();
		f.connect("10.80.32.181");
		f.login("qms", "qms123");
		FTPFile[] files = f.listFiles("/");
		for (FTPFile ftpFile : files) {
			System.out.println(ftpFile.getName());
		}
		f.logout();
		f.disconnect();
	}

}
